#求数组的最大值
def max(x):
    a = []
    for i in range(0,x):
        y = int(input("请输入数字："))
        a.append(y)
    for i in range(0,len(a)):
        for j in range(i + 1,len(a)):
            if a[i] < a[j]:
                a[i],a[j] = a[j],a[i]
    print("输入的数字按照从大到小的顺序排列为{}，最大值为{}".format(a, a[0]))
count = int(input("请输入数字个数："))
max(count)
